<?php 
$sql="select * from noticias where NoticiaPublicar=1 order by NoticiaFecha desc,NoticiaId desc limit 0,3";
$res=cons_sql_up($sql);
$i=1;
?>
<div class="noticias">
<?php while($reg=mysql_fetch_array($res)):?>
<?php if($i<>1):?>
<div class="linea"></div>
<?php endif ?>
<div class="row">
<div class="col-md-6">
<a href="noticia.php?not=<?php echo utf8_encode($reg['NoticiaId'])?>">
<img src="<?php echo RUTA_PANEL."/".$reg['NoticiaImagen']?>" alt="<?php echo utf8_encode($reg['NoticiaTitulo'])?>" height="272px" />
</a>
</div>
<div class="col-md-6">
<h5><a href="noticia.php?not=<?php echo utf8_encode($reg['NoticiaId'])?>"><?php echo utf8_encode($reg['NoticiaTitulo'])?></a></h5>
<b><?php echo format_fec($reg['NoticiaFecha'],".")?> </b><?php echo utf8_encode($reg['NoticiaResumen'])?>
</div>
</div>
<?php 
$i++;
endwhile ?>



</div>